// 商品类型
export const EnumProductType = {
  GIFT_CARD: 1,
  ESIM_CARD: 2, // esim
  ESIM_DATA_PACKAGE: 3, // esim数据包
};

export const ProductTypeOptionList = [{
  text: "礼品卡",
  value: EnumProductType.GIFT_CARD
}];

// 商品发货方式
export const EnumTradeDeliveryType = {
  EXPRESS_DELIVERY: 1, // 快递发货
  CUSTOMER_PICKUP: 2, // 用户自提
  NO_DELIVERY_NEEDED: 3, // 无需配送
};

// 货币单位
export const EnumCurrencyCodeType = {
  CNY: "CNY", // 人民币
  USD: "USD", // 美元
};
export const CurrencyCodeTypeOptionList = [{
  value: EnumCurrencyCodeType.CNY,
  text: "人民币"
}, {
  value: EnumCurrencyCodeType.USD,
  text: "美元"
}];

/*******虚拟商品设置start******/
// sku状态
export const EnumSkuStatus = {
  RECYCLE: -1, //(-1, "回收站"),
  DISABLE: 0, //(0, "下架"),
  ENABLE: 1, //(1, "上架");
};

export const EnumSkuStatusText = {
  [EnumSkuStatus.DISABLE]: "下架",
  [EnumSkuStatus.ENABLE]: "上架",
  [EnumSkuStatus.RECYCLE]: "回收站",
};

// 充值类型
export const EnumRechargeType = {
  GIFT_CARD: 0,
  DIRECT_TOPUP: 1,
};
export const RechargeTypeOptionList = [{
  text: "GIFT_CARD",
  value: EnumRechargeType.GIFT_CARD
}, {
  text: "DIRECT_TOPUP",
  value: EnumRechargeType.DIRECT_TOPUP
}];

// 充值方式
export const EnumRechargeMethodType = {
  DIRECT_RECHARGE: 0, // 直充
  CARD_CODE: 1, // 卡密
};
export const RechargeMethodTypeOptionList = [
//   {
//   text: "直充",
//   value: EnumRechargeMethodType.DIRECT_RECHARGE
// },
  {
  text: "卡密",
  value: EnumRechargeMethodType.CARD_CODE
}];

// 发货方式
export const EnumDeliveryMethodType = {
  AUTOMATIC: 0, // 自动
  MANUAL: 1, // 手动
};
export const EnumDeliveryMethodTypeText = {
  [EnumDeliveryMethodType.AUTOMATIC]: "自动",
  [EnumDeliveryMethodType.MANUAL]: "手动",
};
export const DeliveryMethodTypeOptionList = [{
  text: "自动",
  value: EnumDeliveryMethodType.AUTOMATIC
}, {
  text: "手动",
  value: EnumDeliveryMethodType.MANUAL
}];

// 用户自定义输入选项
export const EnumUserCustomInputType = {
  RECHARGE_ACCOUNT: 1,
  RECHARGE_PASSWORD: 2,
  RECHARGE_GAME: 3,
  RECHARGE_REGION: 4,
  RECHARGE_SERVER: 5,
  BILLING_METHOD: 6,
  GAME_CHARACTER: 7,
  CONTACT_PHONE: 8,
  CONTACT_QQ: 9,
  RECEIVE_EMAIL: 10,
};
export const UserCustomInputOptionList = [{
  text: "充值账号",
  value: EnumUserCustomInputType.RECHARGE_ACCOUNT
}, {
  text: "充值密码",
  value: EnumUserCustomInputType.RECHARGE_PASSWORD
}, {
  text: "充值游戏",
  value: EnumUserCustomInputType.RECHARGE_GAME
}, {
  text: "充值区",
  value: EnumUserCustomInputType.RECHARGE_REGION
}, {
  text: "充值服",
  value: EnumUserCustomInputType.RECHARGE_SERVER
}, {
  text: "计费方式",
  value: EnumUserCustomInputType.BILLING_METHOD
}, {
  text: "游戏角色",
  value: EnumUserCustomInputType.GAME_CHARACTER
}, {
  text: "联系电话",
  value: EnumUserCustomInputType.CONTACT_PHONE
}, {
  text: "联系QQ",
  value: EnumUserCustomInputType.CONTACT_QQ
}, {
  text: "接收邮箱",
  value: EnumUserCustomInputType.RECEIVE_EMAIL
}];
/*******虚拟商品设置end******/

export const EnumSaleChannelType = {
  ALL: 0,
  ALIPAY: 1,
  WX: 2,
  BN_CASH: 3,
};

export const SaleChannelOptionList = [{
  text: "全部渠道",
  value: EnumSaleChannelType.ALL,
  }, {
  text: "支付宝小程序",
  value: EnumSaleChannelType.ALIPAY,
} , {
  text: "微信小程序",
  value: EnumSaleChannelType.WX,
} , {
  text: "币安现金卡",
  value: EnumSaleChannelType.BN_CASH,
}];

export const SaleChannelMap = {
  [EnumSaleChannelType.ALL]: "全部渠道",
  [EnumSaleChannelType.ALIPAY]: "支付宝小程序",
  [EnumSaleChannelType.WX]: "微信小程序",
};
